package org.wk.common.enums;

import org.wk.core.common.view.GeneralResponseCode;

public enum ResponseCode implements GeneralResponseCode{

	MOBILE_NUMBER_ERROR("mobile_number_error","手机号码错误"),
	MOBILE_NUMBER_EXIST("mobile_number_exist","手机号码已注册"),
	MOBILE_NUMBER_UNREGISTERED("mobile_number_unregistered","手机号码未注册"),
	SMS_CODE_SEND_SUCCESS("sms_code_send_success","手机验证码发送成功"),
	SMS_CODE_SEND_FAIL("sms_code_send_fail","手机验证码发送失败"),
	SMS_CODE_TYPE_ERROR("sms_code_type_error","手机验证码类型错误");
	private String code;
	private String message;

	private ResponseCode(String code, String message) {
		this.code = code;
		this.message = message;
	}

	
	/* (非 Javadoc)
	 * <p>Title: getMessage</p>
	 * <p>Description: </p>
	 * @return
	 * @see org.wk.core.common.exception.GeneralExceptionCode#getMessage()
	 */ 
	
	@Override
	public String getMessage() {
		// TODO Auto-generated method stub
		return message;
	}

	
	/* (非 Javadoc)
	 * <p>Title: getCode</p>
	 * <p>Description: </p>
	 * @return
	 * @see org.wk.core.common.exception.GeneralExceptionCode#getCode()
	 */ 
	
	@Override
	public String getCode() {
		// TODO Auto-generated method stub
		return code;
	}


}
